package com.xmy.cultivate.service;

import com.xmy.cultivate.entity.MobileStaffPermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 员工权限 服务类
 * </p>
 *
 * @author hpiggy
 * @since 2024-06-26
 */
public interface IMobileStaffPermissionService extends IService<MobileStaffPermission> {
    public List<Long> getStaffPermissionAllByStaffId(String staffId);

    public List<Long> getStaffPermissionAll(String staffId,String  roleId);

    public List<Long> getStaffPermissionByStaffId(String staffId,Integer type);

    /**
     * 个人权限
     *
     * @param staffId
     * @param staffPermissionList
     * @return
     */
    public Boolean updateStaffPermissionByStaffId(String staffId,List<Long> staffPermissionList);

}
